#pragma once


// CScreenDlg dialog

class CScreenDlg : public CDialog
{
	DECLARE_DYNAMIC(CScreenDlg)

public:
	CScreenDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CScreenDlg();
	CDC		m_dcMem;
	CSize	m_size;      // screen size
	CBitmap	m_bmpScreen; // the screen bitmap
	CBitmap m_bmpInfoBK;
	CPoint	m_ptMouse;   //mouse position

	CRect	m_rectInfo;
	BOOL	m_bSelectRgn;
	BOOL	m_bEnd;
	CRect   m_rectSelect;
	BOOL   m_bSelectOK;
	HCURSOR		m_hCursor;
// Dialog Data
	enum { IDD = IDD_DIALOG_SCREEN };
	
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	void DisplayInfo(void);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	void SaveSelectBmp(void);
protected:
	virtual void OnOK();
public:
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
};
